
/**
 * Interface ViewListener specifies the interface for an object that responds to events sent from a view object.
 * 
 * @author jhaberstro
 */
public interface ViewListener
{
	/**
	 * Attempt to join a game sessions.
	 * @param session - the name of the game session.
	 */
	public void join(ViewProxy v, String session);
	
	/**
	 * Notify the view listener that a game piece should be placed.
	 * @param x - the x location on the grid of the placed game piece.
	 * @param y - the y location on the grid of the placed game piece.
	 * @param color - the color of the player that placed the piece.
	 */
	public void placePiece(int x, int y, ColorType color);
	
	/**
	 * Notify the view listener that it the view has been disconnected.
	 */
	public void disconnected();
}
